﻿#include "FITKPhyscisPropertyRibInfo.h"
#include "FITKAcousticsAbsPhysicsProp.h"
#include "FITK_Kernel/FITKCore/FITKDataRepo.h"

namespace Acoustics
{

    double FITKPhyscisPropertyRibInfo::getSpacing() const
    {
        return _spacing;
    }

    void FITKPhyscisPropertyRibInfo::setSpacing(double spacing)
    {
        _spacing = spacing;
    }

    double FITKPhyscisPropertyRibInfo::getOffset() const
    {
        return _offset;
    }

    void FITKPhyscisPropertyRibInfo::setOffset(double offset)
    {
        _offset = offset;
    }

    double FITKPhyscisPropertyRibInfo::getOrientation() const
    {
        return _orientation;
    }

    void FITKPhyscisPropertyRibInfo::setOrientation(double orientation)
    {
        _orientation = orientation;
    }

    void FITKPhyscisPropertyRibInfo::setSpacingDevFraction(const double dev)
    {
        _spacingDevFraction = dev;
    }

    double FITKPhyscisPropertyRibInfo::getSpacingDevFraction() const
    {
        return _spacingDevFraction;
    }

    void FITKPhyscisPropertyRibInfo::setBeamPropID(const int id)
    {
        _beamPropID = id;
    }

    int FITKPhyscisPropertyRibInfo::getBeamPropID()
    {
        return _beamPropID;
    }

    Acoustics::FITKAcousticsAbsPhysicsProp* FITKPhyscisPropertyRibInfo::getBeamPropObj()
    {
        //仓库获取数据对象
        return FITKDATAREPO->getTDataByID<FITKAcousticsAbsPhysicsProp>(_beamPropID);
    }

}
